package com.mail.anteater.bean;

import java.util.ArrayList;
import java.util.Date;

public class Filter {

	private ArrayList<Long> ids; 
	private Priority priority;
	private Type type;
	private String status;
	private String sender;
	private String receiver;
	private String cc;
	private String subject;
	private String content;
	private Date from;
	private Date to;
	private int recordPerPage;
	private int page;
	private Order order = Order.ASC;
	private SortBy sortBy;
	
	public ArrayList<Long> getIds() {
		return ids;
	}

	public void setIds(ArrayList<Long> ids) {
		this.ids = ids;
	}

	public Priority getPriority() {
		return priority;
	}

	public void setPriority(Priority priority) {
		this.priority = priority;
	}

	public Type getType() {
		return type;
	}

	public void setType(Type type) {
		this.type = type;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public String getReceiver() {
		return receiver;
	}

	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}

	public String getCc() {
		return cc;
	}

	public void setCc(String cc) {
		this.cc = cc;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getFrom() {
		return from;
	}

	public void setFrom(Date from) {
		this.from = from;
	}

	public Date getTo() {
		return to;
	}

	public void setTo(Date to) {
		this.to = to;
	}

	public int getRecordPerPage() {
		return recordPerPage;
	}

	public void setRecordPerPage(int recordPerPage) {
		this.recordPerPage = recordPerPage;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public Order getOrder() {
		return order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	public SortBy getSortBy() {
		return sortBy;
	}

	public void setSortBy(SortBy sortBy) {
		this.sortBy = sortBy;
	}

	@Override
	public String toString() {
		return "Filter [cc=" + cc + ", content=" + content + ", from=" + from + ", ids=" + ids + ", order=" + order + ", page=" + page + ", priority="
				+ priority + ", receiver=" + receiver + ", recordPerPage=" + recordPerPage + ", sender=" + sender + ", sortBy=" + sortBy + ", status=" + status
				+ ", subject=" + subject + ", to=" + to + ", type=" + type + "]";
	}

	public String toStringWithoutPage() {
		return "Filter [cc=" + cc + ", content=" + content + ", from=" + from + ", ids=" + ids + ", order=" + order + ", priority="
		+ priority + ", receiver=" + receiver + ", sender=" + sender + ", sortBy=" + sortBy + ", status=" + status
		+ ", subject=" + subject + ", to=" + to + ", type=" + type + "]";
	}
}

